package com.hzw.saas.web.hbox.param;

import java.io.Serializable;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @author zzl
 * @since 03/01/2021
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel("Loc分片校验参数")
public class LocChunkGetParam implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 文件ID
     */
    @ApiModelProperty(value = "文件ID", position = 1, required = true)
    @NotBlank(message = "文件ID不可为空")
    private String fileId;

    /**
     * 分片起始字节
     */
    @ApiModelProperty(value = "分片起始字节", position = 2, required = true)
    @NotNull(message = "分片起始字节不可为空")
    private Long startBytes;

    /**
     * 分片结束字节
     */
    @ApiModelProperty(value = "分片结束字节", position = 3, required = true)
    @NotNull(message = "分片结束字节不可为空")
    private Long endBytes;

    /**
     * 分片摘要
     */
    @ApiModelProperty(value = "分片摘要", position = 4)
    private String digest;
}
